//
//  YXHomeFenRunView.m
//  CreditCard
//
//  Created by 杨旭 on 2017/12/23.
//  Copyright © 2017年 杨旭. All rights reserved.
//

#import "YXHomeFenRunView.h"

@interface YXHomeFenRunView ()
@property (strong, nonatomic) IBOutlet UIView *backView;

@property (weak, nonatomic) IBOutlet UILabel *textLab1;
@property (weak, nonatomic) IBOutlet UILabel *textLab2;
@property (weak, nonatomic) IBOutlet UILabel *textLab3;
@property (weak, nonatomic) IBOutlet UILabel *textLab4;


@end

@implementation YXHomeFenRunView

-(instancetype)initWithFrame:(CGRect)frame withDataArray:(NSArray *)dataArray{
    
    if (self = [super initWithFrame:frame]) {
        // 从xib中找到我们定义的view
        NSArray *viewArray = [[NSBundle mainBundle]loadNibNamed:@"YXHomeFenRunView" owner:self options:nil];
        self = viewArray[0];
        self.frame = frame;
        self.backgroundColor = color_backColor;
        self.textLab1.text = [NSString stringWithFormat:@"%@",[YXUserInfoManager getUserInfo].branchAmount];
        self.textLab2.text = [NSString stringWithFormat:@"%@",[YXUserInfoManager getUserInfo].availableAmount];
       
        [self setupUI];
    }
    return self;
    
}

- (void)setupUI {
    
    self.backView.layer.masksToBounds = YES;
    self.backView.layer.cornerRadius = 8.0f;
}



@end
